import request from '@/utils/request';

// ============= 贵宾室规则=============
// 获取航站列表
export async function queryCityInfo(params) {
  return request('/dp/sys/getSelectCityInfo', {
    method: 'get',
    params,
  })
}
// 新增站点
export async function saveDataSites (params) {
  return request('/ao/viproom/sites/save', {
    method: 'POST',
    params
  });
}
// 获取列表
export async function getRuleTable(params) {
  return request('/ao/viproom', {
    params,
    method:'get'
  });
}

// 获取贵宾室名称
export async function getVipRoomBy3Code(params) {
  return request('/vipRoom/sys/vipRoom/page', {
    params,
    method:'get'
  });
}

// 新增、编辑规则
export async function saveDataRule (params) {
  return request('/ao/viproom/update', {
    method: 'POST',
    data: params
  });
}

// 删除规则
export async function deleteRule(params) {
  return request('/ao/viproom/delete', {
    method: 'POST',
    params,
  });
}

// =============== 贵宾室套餐===============
// 获取列表
export async function getPriceTable(params) {
  console.log(params);
  return request('/ao/viproom/item/', {
    method:'get',
    params
  });
}

// 新增、编辑套餐
export async function saveDataPrice (params) {
  return request('/ao/viproom/item/update', {
    method: 'POST',
    data: params
  });
}

// 删除套餐
export async function deletePrice(params) {
  return request('/ao/viproom/item/delete', {
    method: 'POST',
    params,
  });
}

// 获取站点
export async function querySites(params) {
  return request('/ao/viproom/sites', {
    method: 'get',
    params,
  })
}

